import Vue from 'vue'
import { requst } from '@/http/request.js'

// 获取验证码
Vue.prototype.$getSmsCode = (prms) => {
	return requst('/api/sms/send', prms, 'POST')
}

// 登录 
Vue.prototype.$login = (prms) => {
	return requst('/api/user/mobilelogin', prms, 'POST')
}

// 优惠券列表  
Vue.prototype.$getCouponList = (prms) => {
	return requst('/api/coupon/getList', prms, 'GET')
}

// 获取大区   
Vue.prototype.$getAreaList = (prms) => {
	return requst('/api/index/region', prms, 'GET')
}

// 获取网点 /api/index/site?id=1
Vue.prototype.$getSiteList = (prms) => {
	return requst('/api/index/site', prms, 'GET')
}